package com.yanqu.road.entity.activity.ghost;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_c_activity_ghost_disperse")
public class GhostDisperseData extends DataObject {
    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "批次号", select = true, update = true)
    private int batchNo;
    @FieldTypeAnnotation(desc = "类型：1发现boss送财，2boss全清送财", update = true)
    private int type;
    @FieldTypeAnnotation(desc = "ID", update = true)
    private int disperseId;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward = "";
    @FieldTypeAnnotation(desc = "剩余数量")
    private int count;
    @FieldTypeAnnotation(desc = "权重")
    private int weight;
    @FieldTypeAnnotation(desc = "是否公告")
    private boolean notice = false;

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public void setBatchNo(int batchNo) {
        if (this.batchNo != batchNo) {
            this.batchNo = batchNo;
            setOp(DataStatus.Update);
        }
    }

    public void setDisperseId(int disperseId) {
        if (this.disperseId != disperseId) {
            this.disperseId = disperseId;
            setOp(DataStatus.Update);
        }
    }

    public void setReward(String reward) {
        if (null == reward) {
            return;
        }
        if (!this.reward.equals(reward)) {
            this.reward = reward;
            setOp(DataStatus.Update);
        }
    }

    public void setCount(int count) {
        if (this.count != count) {
            this.count = count;
            setOp(DataStatus.Update);
        }
    }

    public void setWeight(int weight) {
        if (this.weight != weight) {
            this.weight = weight;
            setOp(DataStatus.Update);
        }
    }

    public void setNotice(boolean notice) {
        if (this.notice != notice) {
            this.notice = notice;
            setOp(DataStatus.Update);
        }
    }

    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }

    public int getActivityId() {
        return activityId;
    }

    public int getBatchNo() {
        return batchNo;
    }

    public int getDisperseId() {
        return disperseId;
    }

    public String getReward() {
        return reward;
    }

    public int getCount() {
        return count;
    }

    public int getWeight() {
        return weight;
    }

    public boolean isNotice() {
        return notice;
    }
}
